<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@page import="com.demoweb.model.dto.Membership"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Red Fortress</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="/demoweb/styles/style.css" rel="stylesheet" type="text/css" />
</head>
<body>

<% pageContext.include("/WEB-INF/views/flappy/header.jsp"); %>

<div id="content">
  <div id="sidebar">
    <div id="login" class="boxed">
      <h2 class="title">Client Account</h2>
      <div class="content">     
		<form id="loginform" method="post" action="fortressLogin.nhn">
		  
		 <% if (request.getParameter("returnuri") != null) { %>
		        <%-- <input type="hidden" .. /> : 눈에 보이지 않는 입력 요소 --%>
		        <% String query = request.getParameter("pageno");
		           String returnuri = request.getParameter("returnuri");
				   if(query != null && query.length() != 0) {
				  	 if(returnuri.contains("?")) {
					   	query="&pageno=" + query;
				  	 } else {
						   query="?pageno=" + query;
				   	 }
				   } else {
					   query = "";
				   }
		        %>
		        <input type="hidden" name="returnuri" value='<%= returnuri + query %>' />
		 <% } %>
		        
          <fieldset>
          <legend>Login</legend>
          <label for="inputtext1">Client ID:</label>
          <input id="inputtext1" type="text" name="memberId" value="" />
          <label for="inputtext2">Password:</label>
          <input id="inputtext2" type="password" name="passwd" value="" />
          <input id="inputsubmit1" type="submit" name="inputsubmit1" value="Login" />
          <p><a href="">Forgot your password?</a></p>
          </fieldset>
        </form>
      </div>
    </div> 
   	<% pageContext.include("/WEB-INF/views/include/fortressrecentupdates.jsp"); %>
  </div>
  
  <!-- ---------------------------------- Main page content ----------------------------------- -->
  <div id="main"> 
  	  <h2 class="title">Please Login!</h2>
      <p><img src="/demoweb/images/img08.jpg" alt="" width="472" height="400" /></p>
  </div>
  <!-- -------------------------------------------------------------------------------------------- -->
  
</div>
<div id="footer">
  <p id="legal">Copyright &copy; 2007 Red Avenue. All Rights Reserved. Designed by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.</p>
  <p id="links"><a href="http://www.free-css.com/">Home</a> | <a href="http://www.free-css.com/">Terms of Use</a></p>
</div>
</body>
</html>
